package servlet;

import com.example.demo.http.servlet.MyRequest;
import com.example.demo.http.servlet.MyResponse;
import com.example.demo.http.servlet.MyServlet;

import java.io.IOException;

public class FirstServlet extends MyServlet {
    @Override
    protected void doGet(MyRequest request, MyResponse response) throws IOException {
        doPost(request,response);
    }

    @Override
    protected void doPost(MyRequest request, MyResponse response) throws IOException {
        response.write("FirstServlet hello ....");
    }
}
